home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlagts.z / dlagts
Encoding:
Text File  |  2002-10-03  |  5.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))                                                          DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLAGTS - may be used to solve one of the systems of equations  (T -
  10.      lambda*I)*x = y or (T - lambda*I)'*x = y,
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DLAGTS( JOB, N, A, B, C, D, IN, Y, TOL, INFO )
  14.  
  15.          INTEGER        INFO, JOB, N
  16.  
  17.          DOUBLE         PRECISION TOL
  18.  
  19.          INTEGER        IN( * )
  20.  
  21.          DOUBLE         PRECISION A( * ), B( * ), C( * ), D( * ), Y( * )
  22.  
  23. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  24.      These routines are part of the SCSL Scientific Library and can be loaded
  25.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  26.      directs the linker to use the multi-processor version of the library.
  27.  
  28.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  29.      4 bytes (32 bits). Another version of SCSL is available in which integers
  30.      are 8 bytes (64 bits).  This version allows the user access to larger
  31.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  32.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  33.      only one of the two versions; 4-byte integer and 8-byte integer library
  34.      calls cannot be mixed.
  35.  
  36. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  37.      DLAGTS may be used to solve one of the systems of equations (T -
  38.      lambda*I)*x = y or (T - lambda*I)'*x = y, where T is an n by n
  39.      tridiagonal matrix, for x, following the factorization of (T - lambda*I)
  40.      as
  41.  
  42.         (T - lambda*I) = P*L*U ,
  43.  
  44.      by routine DLAGTF. The choice of equation to be solved is controlled by
  45.      the argument JOB, and in each case there is an option to perturb zero or
  46.      very small diagonal elements of U, this option being intended for use in
  47.      applications such as inverse iteration.
  48.  
  49.  
  50. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  51.      JOB     (input) INTEGER
  52.              Specifies the job to be performed by DLAGTS as follows:
  53.              =  1: The equations  (T - lambda*I)x = y  are to be solved, but
  54.              diagonal elements of U are not to be perturbed.  = -1: The
  55.              equations  (T - lambda*I)x = y  are to be solved and, if overflow
  56.              would otherwise occur, the diagonal elements of U are to be
  57.              perturbed. See argument TOL below.  =  2: The equations  (T -
  58.              lambda*I)'x = y  are to be solved, but diagonal elements of U are
  59.              not to be perturbed.  = -2: The equations  (T - lambda*I)'x = y
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))                                                          DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              are to be solved and, if overflow would otherwise occur, the
  75.              diagonal elements of U are to be perturbed. See argument TOL
  76.              below.
  77.  
  78.      N       (input) INTEGER
  79.              The order of the matrix T.
  80.  
  81.      A       (input) DOUBLE PRECISION array, dimension (N)
  82.              On entry, A must contain the diagonal elements of U as returned
  83.              from DLAGTF.
  84.  
  85.      B       (input) DOUBLE PRECISION array, dimension (N-1)
  86.              On entry, B must contain the first super-diagonal elements of U
  87.              as returned from DLAGTF.
  88.  
  89.      C       (input) DOUBLE PRECISION array, dimension (N-1)
  90.              On entry, C must contain the sub-diagonal elements of L as
  91.              returned from DLAGTF.
  92.  
  93.      D       (input) DOUBLE PRECISION array, dimension (N-2)
  94.              On entry, D must contain the second super-diagonal elements of U
  95.              as returned from DLAGTF.
  96.  
  97.      IN      (input) INTEGER array, dimension (N)
  98.              On entry, IN must contain details of the matrix P as returned
  99.              from DLAGTF.
  100.  
  101.      Y       (input/output) DOUBLE PRECISION array, dimension (N)
  102.              On entry, the right hand side vector y.  On exit, Y is
  103.              overwritten by the solution vector x.
  104.  
  105.      TOL     (input/output) DOUBLE PRECISION
  106.              On entry, with  JOB .lt. 0, TOL should be the minimum
  107.              perturbation to be made to very small diagonal elements of U.
  108.              TOL should normally be chosen as about eps*norm(U), where eps is
  109.              the relative machine precision, but if TOL is supplied as non-
  110.              positive, then it is reset to eps*max( abs( u(i,j) ) ).  If  JOB
  111.              .gt. 0  then TOL is not referenced.
  112.  
  113.              On exit, TOL is changed as described above, only if TOL is non-
  114.              positive on entry. Otherwise TOL is unchanged.
  115.  
  116.      INFO    (output) INTEGER
  117.              = 0   : successful exit
  118.              element of the solution vector x. This can only occur when JOB is
  119.              supplied as positive and either means that a diagonal element of
  120.              U is very small, or that the elements of the right-hand side
  121.              vector y are very large.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))                                                          DDDDLLLLAAAAGGGGTTTTSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SEE ALSO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.